<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'test.jsp' starting page</title>
    
	<link rel="stylesheet" type="text/css" href="css/ext-all.css" /> 
	<link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css">
	<script type="text/javascript" src="extjs/adapter/ext/ext-base.js"></script>
	<script type="text/javascript" src="extjs/ext-all.js"></script>
	<script type="text/javascript" src="extjs/source/locale/ext-lang-zh_CN.js"></script>
<script>
   function a(){
    alert('som thing')
    }
    Ext.onReady(function(){
    //delay
    Ext.get('btnAlert').addListener('click',a,this,{buffer:1000});
          
});
</script>
  </head>
  
  <body>   
  <input type="button" value="alert框" id="btnAlert" />
  </body>
</html>
